﻿<%@ Page Title="数据查询" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="DataSearchList.aspx.cs" Inherits="StoragePeriod.Web.StorageForecast.DataSearch.DataSearchList" %>
<%@ Register TagPrefix="uc" TagName="tree" Src="~/UserControls/MaterialTree.ascx" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
<style type="text/css">
    .layout{background:url(/images/images_25.jpg) no-repeat; }
    .Right_title{width:764px; height:32px; background-position:0px 0px;}
    .Right_center{height:456px;}
    .datalist{ width:100%;padding-top:10px; clear:both; height:390px;overflow-x:hidden; overflow-y:auto;}
    .datalist table{margin:0px auto; background-color:#fff;}
    .datalist table tbody tr td{border:1px solid #6293ba; height:20px; line-height:20px;}
    .datalist table tbody tr{ background-color:#fff;}
    .Page{ padding-top:10px;}
    </style>
    <script src="/Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".listtr").live("mouseover", function () {
                $(this).css("background-color", "#e1eaf3");
            }).live("mouseout", function () {
                $(this).css("background-color", "#fff");
            });

            $(".Right_title li").click(function () {
                window.location.href = '/StorageForecast/DataSearch/DataSearchList.aspx?SearchTypeID=' + $(this).attr("showid") + "&Rid=" + Math.random();
            });
        });
    </script>
</asp:Content>

<asp:Content ID="BodyContentLeft" ContentPlaceHolderID="MainLeft"  runat="server">
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <uc:tree ID="sysTree" runat="server" RawTypeId=2 />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

<asp:Content ID="BodyContentRight" ContentPlaceHolderID="MainContent" runat="server">
<div class="Right_title">
    <ul>
        <li showid="0" style="color:<%=(Request.QueryString["SearchTypeID"]==null||Request.QueryString["SearchTypeID"].ToString()=="0")?"#f90":"#fff"%>">贮存期数据查询</li>
        <li showid="1" style="color:<%=(Request.QueryString["SearchTypeID"]!=null&&Request.QueryString["SearchTypeID"].ToString()=="1")?"#f90":"#fff"%>">贮存期计算日志</li>
    </ul>
</div>
<div class="Right_center">
    <div id="center_0" class="center_Main">
        <div class="center_table" style="height:35px;">
            <table cellpadding="0" cellspacing="0" width="100%">
                <thead>
                    <tr>
                        <td width="200px;">
                            单位：
                            <asp:DropDownList ID="Drop_OperationSearch" runat="server" style="width:100px;" onselectedindexchanged="Drop_OperationSearch_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                        </td>
                        <td align="left">
                            班组：
                            <asp:DropDownList ID="Drop_TeamSearch" runat="server" style="width:100px;"></asp:DropDownList>
                        </td>
                    </tr>
                </thead>
            </table>
        </div>
        <div class="center_btnlist">
            <ul>
               <li>查询时间：</li>
               <li><asp:TextBox ID="txtStartTime" runat="server" CssClass="input" onclick="WdatePicker()"></asp:TextBox></li>
               <li>至</li>
               <li><asp:TextBox ID="txtEndTime" runat="server" CssClass="input" onclick="WdatePicker()"></asp:TextBox></li>
               <li class="width200"><asp:Button ID="BtnSearch" runat="server" Text="查询"  CssClass="btn_0" onclick="BtnSearch_Click" /></li>
               <li style="width:100px;"></li>
            </ul>
        </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:HiddenField ID="HidRawList" runat="server" Value="0" />
        <div class="datalist">
            <table class="rtb_01" border="1" cellpadding="0" cellspacing="0" width="98%">
                <thead>
                    <tr>
                        <th style="width:40px;">序号</th>
                        <th style="width:80px;">原料名称</th>
                        <th style="width:80px;">计算日期</th>
                        <th style="width:80px;">估算类型</th>
                        <th style="width:100px;">计算指标</th>
                        <th style="width:100px;">极限值</th>
                        <th>结果</th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="RepList" runat="server">
                        <ItemTemplate>
                            <tr class="listtr">
                                <td align="center"><%#Eval("RID")%></td>
                                <td align="left"><%#Eval("RawName")%></td>
                                <td align="left"><%#Eval("AddTime").ToString()!=""?Convert.ToDateTime(Eval("AddTime")).ToShortDateString():""%></td>
                                <td><%#GetCalculateName(Eval("CalculateTypeID")!=null?Eval("CalculateTypeID").ToString():"")%></td>
                                <td><%#Eval("QuotaName")%></td>
                                <td><%#Eval("ElectValue")%></td>
                                <td><%#Eval("CalculateResult")%></td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
        <div class="Page">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" PageSize="10" 
                onpagechanged="AspNetPager1_PageChanged" FirstPageText="首页" 
                LastPageText="末页" NextPageText="下一页" PrevPageText="上一页" >
            </webdiyer:AspNetPager>
        </div>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</div>
<div class="Right_foot">
    <img src="/images/images_29.jpg" width="764" height="8"/>
</div>
</asp:Content>
